package com.aspose.cells.a.d;

public class zn extends zd implements zbg {
   public zs a;
   private com.aspose.cells.b.a.b.zc b;
   private com.aspose.cells.b.a.b.a.zi c;
   private zn d;
   private int e = 0;

   public zn() {
   }

   public zn(com.aspose.cells.b.a.b.zq var1) {
      zo var2 = new zo(var1.d());
      var2.a(true);
      this.a((zl)var2);
      zq var3 = new zq(new float[]{var1.l(), var1.k(), var1.l(), var1.m(), var1.j(), var1.m()});
      var2.a((zl)var3);
   }

   public com.aspose.cells.b.a.b.zc d() {
      return this.b;
   }

   public void a(com.aspose.cells.b.a.b.zc var1) {
      this.b = var1;
   }

   public com.aspose.cells.b.a.b.a.zi a() {
      return this.c;
   }

   public void a(com.aspose.cells.b.a.b.a.zi var1) {
      this.c = var1;
   }

   public zn b() {
      return this.d;
   }

   public boolean c() {
      return this.a != null;
   }

   public int e() {
      return this.e;
   }

   public void b(int var1) {
      this.e = var1;
   }

   public void a(ze var1) throws Exception {
      if (!(var1 instanceof zat) && (!(var1 instanceof zgl) || !((zgl)var1).c())) {
         com.aspose.cells.b.a.b.zc var2 = this.d();
         if (var2 != null && (var2 instanceof com.aspose.cells.b.a.b.a.zh || var2 instanceof com.aspose.cells.b.a.b.a.zk || var2 instanceof com.aspose.cells.b.a.b.zx)) {
            zb var3;
            if (var2 instanceof com.aspose.cells.b.a.b.a.zh) {
               var3 = zh.a((com.aspose.cells.b.a.b.a.zh)var2);
            } else if (var2 instanceof com.aspose.cells.b.a.b.a.zk) {
               var3 = zh.a((com.aspose.cells.b.a.b.a.zk)var2);
            } else {
               var3 = zh.a((com.aspose.cells.b.a.b.zx)var2);
            }

            var3.a(this);
            var3.a(this.a());
            var3.a(var1);
            return;
         }
      }

      var1.a(this);
      super.a(var1);
      var1.b(this);
   }

   public static zn a(com.aspose.cells.b.a.b.zo var0, com.aspose.cells.b.a.b.zo var1, com.aspose.cells.b.a.b.zo var2) {
      zn var3 = new zn();
      zo var4 = new zo(var0);
      var4.a(true);
      var3.a((zl)var4);
      zq var5 = new zq(new float[]{var1.d(), var1.e(), var2.d(), var2.e(), var0.d(), var0.e()});
      var4.a((zl)var5);
      return var3;
   }

   public static zn a(com.aspose.cells.b.a.b.zq var0) {
      float var1 = 0.2761424F;
      zn var2 = new zn();
      zo var3 = new zo(var0.d());
      var3.a(true);
      var2.a((zl)var3);
      com.aspose.cells.b.a.b.zo var4 = new com.aspose.cells.b.a.b.zo(var0.h() * var1, var0.i() * var1);
      com.aspose.cells.b.a.b.zo var5 = new com.aspose.cells.b.a.b.zo(var0.j() + var0.h() / 2.0F, var0.k() + var0.i() / 2.0F);
      com.aspose.cells.b.a.b.zo[] var6 = new com.aspose.cells.b.a.b.zo[13];

      for(int var7 = 0; var7 < 13; ++var7) {
         var6[var7] = new com.aspose.cells.b.a.b.zo();
      }

      var6[0].a(var0.j());
      var6[1].a(var0.j());
      var6[11].a(var0.j());
      var6[12].a(var0.j());
      var6[5].a(var0.l());
      var6[6].a(var0.l());
      var6[7].a(var0.l());
      var6[2].a(var5.d() - var4.d());
      var6[10].a(var5.d() - var4.d());
      var6[4].a(var5.d() + var4.d());
      var6[8].a(var5.d() + var4.d());
      var6[3].a(var5.d());
      var6[9].a(var5.d());
      var6[2].b(var0.k());
      var6[3].b(var0.k());
      var6[4].b(var0.k());
      var6[8].b(var0.m());
      var6[9].b(var0.m());
      var6[10].b(var0.m());
      var6[7].b(var5.e() + var4.e());
      var6[11].b(var5.e() + var4.e());
      var6[1].b(var5.e() - var4.e());
      var6[5].b(var5.e() - var4.e());
      var6[0].b(var5.e());
      var6[12].b(var5.e());
      var6[6].b(var5.e());
      zp var10 = new zp();

      for(int var8 = 0; var8 < 12; var8 += 3) {
         zt var9 = new zt();
         var9.a(var6[var8 + 0]);
         var9.b(var6[var8 + 1]);
         var9.c(var6[var8 + 2]);
         var9.d(var6[var8 + 3]);
         var10.a(var9);
      }

      var3.a((zl)var10);
      var3.a(var6[0]);
      return var2;
   }

   public static zn b(com.aspose.cells.b.a.b.zq var0) {
      zn var1 = new zn();
      zo var2 = new zo(var0.d());
      var2.a(true);
      var1.a((zl)var2);
      zq var3 = new zq(new float[]{var0.l(), var0.k(), var0.l(), var0.m(), var0.j(), var0.m()});
      var2.a((zl)var3);
      return var1;
   }

   public static zn a(com.aspose.cells.b.a.b.zo var0, com.aspose.cells.b.a.b.zo var1) {
      zn var2 = new zn();
      zo var3 = new zo(var0);
      var2.a((zl)var3);
      zq var4 = new zq(new float[]{var1.d(), var1.e()});
      var3.a((zl)var4);
      return var2;
   }

   public static zn a(com.aspose.cells.b.a.b.zo[] var0, boolean var1) {
      zn var2 = new zn();
      var2.a((zl)zo.a(var0, var1));
      return var2;
   }
}
